Micron Document
🎖️GitЯра🎖️

Node / meshtastic / Meshtastic-Android / files / core / data / src / commonMain / kotlin / org / meshtastic / core / data / datasource / DeviceHardwareLocalDataSource.kt

Displaying Raw • Download

core/data/src/commonMain/kotlin/org/meshtastic/core/data/datasource/DeviceHardwareLocalDataSource.kt 2d20cd8a4708e2ef66e98d5259f3a97ec93f240a (2d20cd8a) Text, 2.30 KB

T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.data.datasource

Tff7b72import T7ee787org.koin.core.annotation.Single
Tff7b72import T7ee787org.meshtastic.core.database.DatabaseProvider
Tff7b72import T7ee787org.meshtastic.core.database.entity.DeviceHardwareEntity
Tff7b72import T7ee787org.meshtastic.core.database.entity.asEntity
Tff7b72import T7ee787org.meshtastic.core.model.NetworkDeviceHardware

Tf0883e@Single
Tff7b72class T56d364DeviceHardwareLocalDataSourceTb4b4b4(Tff7b72private Tff7b72val Te6edf3dbManagerTb4b4b4: Te6edf3DatabaseProviderTb4b4b4) Tb4b4b4{
Tff7b72suspend Tff7b72fun Td2a8ffinsertAllDeviceHardwareTb4b4b4(Te6edf3deviceHardwareTb4b4b4: Te6edf3ListTff7b72<Te6edf3NetworkDeviceHardwareTff7b72>Tb4b4b4) Tb4b4b4{
Te6edf3dbManagerTb4b4b4.Te6edf3withDb Tb4b4b4{ Tffa657itTb4b4b4.Te6edf3deviceHardwareDaoTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3insertAllTb4b4b4(Te6edf3deviceHardwareTb4b4b4.Te6edf3map Tb4b4b4{ Te6edf3hw Tff7b72-Tff7b72> Te6edf3hwTb4b4b4.Te6edf3asEntityTb4b4b4(Tb4b4b4) Tb4b4b4}Tb4b4b4) Tb4b4b4}
Tb4b4b4}

Tff7b72suspend Tff7b72fun Td2a8ffreplaceAllDeviceHardwareTb4b4b4(Te6edf3deviceHardwareTb4b4b4: Te6edf3ListTff7b72<Te6edf3NetworkDeviceHardwareTff7b72>Tb4b4b4) Tb4b4b4{
Te6edf3dbManagerTb4b4b4.Te6edf3withDb Tb4b4b4{ Tffa657itTb4b4b4.Te6edf3deviceHardwareDaoTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3replaceAllTb4b4b4(Te6edf3deviceHardwareTb4b4b4.Te6edf3map Tb4b4b4{ Te6edf3hw Tff7b72-Tff7b72> Te6edf3hwTb4b4b4.Te6edf3asEntityTb4b4b4(Tb4b4b4) Tb4b4b4}Tb4b4b4) Tb4b4b4}
Tb4b4b4}

Tff7b72suspend Tff7b72fun Td2a8ffgetByHwModelTb4b4b4(Te6edf3hwModelTb4b4b4: Tffa657IntTb4b4b4)Tb4b4b4: Te6edf3ListTff7b72<Te6edf3DeviceHardwareEntityTff7b72> Tff7b72=
Te6edf3dbManagerTb4b4b4.Te6edf3withReadDb Tb4b4b4{ Tffa657itTb4b4b4.Te6edf3deviceHardwareDaoTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3getByHwModelTb4b4b4(Te6edf3hwModelTb4b4b4) Tb4b4b4}

Tff7b72suspend Tff7b72fun Td2a8ffgetByTargetTb4b4b4(Te6edf3targetTb4b4b4: Tffa657StringTb4b4b4)Tb4b4b4: Te6edf3DeviceHardwareEntity? Tff7b72=
Te6edf3dbManagerTb4b4b4.Te6edf3withReadDb Tb4b4b4{ Tffa657itTb4b4b4.Te6edf3deviceHardwareDaoTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3getByTargetTb4b4b4(Te6edf3targetTb4b4b4) Tb4b4b4}

Tff7b72suspend Tff7b72fun Td2a8ffgetByModelAndTargetTb4b4b4(Te6edf3hwModelTb4b4b4: Tffa657IntTb4b4b4, Te6edf3targetTb4b4b4: Tffa657StringTb4b4b4)Tb4b4b4: Te6edf3DeviceHardwareEntity? Tff7b72=
Te6edf3dbManagerTb4b4b4.Te6edf3withReadDb Tb4b4b4{ Tffa657itTb4b4b4.Te6edf3deviceHardwareDaoTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3getByModelAndTargetTb4b4b4(Te6edf3hwModelTb4b4b4, Te6edf3targetTb4b4b4) Tb4b4b4}

Tff7b72suspend Tff7b72fun Td2a8ffhasAnyEntriesTb4b4b4(Tb4b4b4)Tb4b4b4: Tffa657Boolean Tff7b72= Te6edf3dbManagerTb4b4b4.Te6edf3withReadDb Tb4b4b4{ Tffa657itTb4b4b4.Te6edf3deviceHardwareDaoTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3countTb4b4b4(Tb4b4b4) Tff7b72> T79c0ff0 Tb4b4b4}

T8b949e/** All known `platformioTarget` values — used to determine which msh.to links are vendor links. */
Tff7b72suspend Tff7b72fun Td2a8ffgetAllTargetsTb4b4b4(Tb4b4b4)Tb4b4b4: Te6edf3ListTff7b72<Tffa657StringTff7b72> Tff7b72= Te6edf3dbManagerTb4b4b4.Te6edf3withReadDb Tb4b4b4{ Tffa657itTb4b4b4.Te6edf3deviceHardwareDaoTb4b4b4(Tb4b4b4)Tb4b4b4.Te6edf3getAllTargetsTb4b4b4(Tb4b4b4) Tb4b4b4}
Tb4b4b4}

Served by rngit 1.5.0 - Generated in 0.04s